#include "Stack.h"

void test()
{
    Stack s;
    StackInit(&s);
    //while()
    StackPush(&s,1);
    StackPush(&s,2);
    StackPush(&s,3);
    StackPush(&s,4);
    StackPush(&s,5);
    StackPush(&s,6);
    StackPush(&s,7);
    StackPush(&s,8);
    StackPush(&s,9);

    printf("%d\n",StackSize(&s));

    while(!StackEmpty(&s))
    {
        printf("%d ",StackTop(&s));
        StackPop(&s);
    }
}

int main()
{
    test();
    return 0;
}




